﻿@using Cineplex.Contacts.Extensions
@{
    ViewBag.Title = "Welcome to cineplex!";
}

<h2>@ViewBag.Message</h2>
<div>
     @using (Html.Configurator("Add new")
              .PostTo("Create", "Contact")
              .Begin())
     {
          @Html.ValidationSummary(true)
         <table width="100%" style="padding: 2px; margin: 2px">
             <tr style="height: 22px;">
                 <td style="width: 15%">Họ/Fist name</td>
                 <td>
                     @Html.TextBox("FistName")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Tên/Last name</td>
                 <td>
                     @Html.TextBox("LastName")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Email</td>
                 <td>
                     @Html.TextBox("Email")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Hand hone</td>
                 <td>
                     @Html.TextBox("HandPhone")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Home phone</td>
                 <td>
                     @Html.TextBox("HomePhone")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Sinh nhật/Birthday</td>
                 <td>
                     @Html.Telerik().DatePicker().Name("Birthday")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Địa chỉ/Address</td>
                 <td>
                     @Html.TextBox("Address")
                 </td>
             </tr>
             <tr style="height: 22px">
                 <td style="width: 15%">Thành phố/City</td>
                 <td>
                     @Html.TextBox("City")
                 </td>
             </tr>
         </table>
         <div style="text-align: left">
            <input type="submit" class="t-button t-state-default" value="Save contact/Thêm mới"/>
         </div>
     }
</div>
